package com.example.data.permission.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.example.data.permission.mp.mate.FieldDict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 结算账户表
 * </p>
 *
 * @author demo
 * @since 2021-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BsdAccount对象", description="结算账户表")
public class BsdAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "账户名称")
    private String name;

    @ApiModelProperty(value = "开户银行")
    private String bankName;

    @ApiModelProperty(value = "银行账号")
    private String bankNo;

    @ApiModelProperty(value = "账户")
    private String account;

    @ApiModelProperty(value = "当期期初额")
    private BigDecimal originAmount;

    @ApiModelProperty(value = "期初后的余额（不含期初额）")
    private BigDecimal amount;

    @ApiModelProperty(value = "所属门店")
    private Long shopId;

    @ApiModelProperty(value = "状态，0-不可用，1-正常")
    private String status;

    @ApiModelProperty(value = "0不是 1 默认")
    private String isDefault;

    @FieldDict(type = "test", target = "izSysText")
    private Integer izSys;
    // 绑定显示属性，非表字典（排除）
    @TableField(exist = false)
    private String izSysText;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private Long createUserId;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUserId;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "租户ID")
    private Long tenantId;


}
